       <?php $form = new sfGuardFormSignin() ?>
  
<?php if (!$sf_user->isAuthenticated()): ?>       
       
     	<div class="additional_left_coll">
       	 <?php  echo link_to(__('Register For Free!'),'sfGuardAuth/checkregister','class="but_big png"')?> 
     
        	<div class="cone_tr"><img src="/images/cone_tl.gif" width="7" height="7" alt="" /></div>
            <div class="cone_back">
            
            	<div class="login_title">Member Login</div>
                
                <form <?php if(sfConfig::get('app_form_transform_login')==true) echo 'class="jqtransform"' ?> action="<?php echo url_for('@sf_guard_signin') ?>" method="post">
                	<div class="login_item">
                    	<span><?php echo __('Логин')?></span>

                        <?php echo $form['username']->render();?>
                    </div>
                    <div class="login_item">
                    	<span><?php echo __('Пароль')?></span>
                        <?php echo $form['password']->render();?>
                        
                        <?php echo link_to(__('forgot?'),'Lostpassword/yes')?>
                    </div>
                    <div class="login_remember"><?php echo $form['remember']->render();?><label for="check"><?php echo __('Запомнить меня')?></label></div>

                    <input class="login_but_bg" type="submit" value="Go!" />
                </form>
            
            </div>
            <div class="cone_br"><img src="/images/cone_bl.gif" width="7" height="7" alt="" /></div>
        
        </div>
  
  <?php else: ?>
 

     	<div class="additional_left_coll">
     	 <?php if(sfContext::getInstance()->getUser()->getProfile()=='m'): ?>
       	 <?php  echo link_to(__('Gallery'),'@gallery_women','class="but_big png"')?>
       	 <?php else: ?>
       	 <?php  echo link_to(__('Gallery'),'@gallery_men','class="but_big png"')?>
       	 <?php endif ?> 
     
        	<div class="cone_tr"><img src="/images/cone_tl.gif" width="7" height="7" alt="" /></div>
            <div class="cone_back">
            
            	<div class="login_title"><?php echo __('Welcome')?> <?php echo sfContext::getInstance()->getUser()->getProfile() ?></div>
                
                <div style="float: right; padding:bottom: -30px">  
                <?php if($sf_user->hasCredential('admin')) echo link_to(__('Админка'),'http://'.$_SERVER['SERVER_NAME'].'/adm.php','style="color: red" target="_blank"')?>
                  </div>
               
                	<div class="login_item">
                    	<span><?php echo link_to(__('My profile'),'@my_profile')?></span>                        
                    </div>
                    
                    <div class="login_item">
                    	<span><?php echo link_to(__('My favorite'),'@fav_my')?></span>                                                                     
                    </div>
                    
                   <div class="login_item">
                    	<span><?php echo link_to(__('Mailbox'),'@mailbox_input')?></span>                                                               
                    </div>

                   <div class="login_item">
                    	<span><?php echo link_to(__('Who&nbsp;interest&nbsp;me'),'@me_interest')?></span>                                                               
                    </div>
                    
                  <div class="login_item">
                    	<span><?php echo link_to(__('Exit'),'@sf_guard_signout')?></span>                                                                
                  </div>
                    
                         
               
            
            </div>
            <div class="cone_br"><img src="/images/cone_bl.gif" width="7" height="7" alt="" /></div>
        
        </div>
        
  
  <?php endif ?>     	